package ma.techit.pfe.agence.voyage.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="Objectif")
public abstract class Objectif extends BaseEntity {
	@Column(name = "satisfait")
	protected boolean satisfait;
	@Column(name = "obligatoire")
	protected boolean obligatoire;
	@ManyToOne(fetch = FetchType.EAGER, targetEntity = Requete.class)
    private Requete requetes;
	public boolean isSatisfait() {
		return satisfait;
	}
	public void setSatisfait(boolean satisfait) {
		this.satisfait = satisfait;
	}
	public boolean isObligatoire() {
		return obligatoire;
	}
	public void setObligatoire(boolean obligatoire) {
		this.obligatoire = obligatoire;
	}

}
